package br.com.vpsa.previdordevendas.controller;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import br.com.vpsa.previdordevendas.model.util.AuthenticationUtil;
import br.com.vpsa.previdordevendas.model.util.SessionUtil;

@Controller
@RequestMapping("/sair")
public class SairController 
{
	@RequestMapping(method = RequestMethod.GET)
    public String index(Map<String, Object> map) 
	{
		SessionUtil.inativarSessao();
		
		return "redirect:"+AuthenticationUtil.STORE_URI;
	}
	
}
